<?php
    session_start();
    if(isset($_SESSION['admin'])){
        require_once("viewmenu.php");
?>
<!DOCTYPE html>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo.css" />
        <link rel="stylesheet" type="text/css" href="css/user_list.css" />
        <script type="text/javascript" src="js/jquery-2.1.1.js"></script>
        <script type="text/javascript" src="js/user.listar.js"></script>
	<title>Cadastro</title>        
    </head>
    <body>
	<div id='centro'>
            <p>Lista de usuários</p>
            <fieldset>
            <div class="mensagem-erro"></div>
                <table id='listausers'>
                    <thead>
                        <tr id='cortopotabela'>
                            <td id="nome" class="td1">Nome</td>                            
                            <td id="login" class="td2">Login</td>
                            <td id="level" class="td3">Nível de acesso</td>
                        </tr>
                    </thead>
                    <tbody id="body">
                    </tbody>
                </table>
            </fieldset>
	</div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>